package main

import (
	"fmt"
	"reflect"
	"time" // 导入时间包
	"unsafe"
)

const (
	Unknown = 0
	Female  = 1
	Male    = 2
)

const (
	a = iota
	b = iota
	c = iota
)

func main() {
	// 获取当前时间
	currentTime := time.Date(2001, 2, 15, 15, 10, 12, 10, time.Local)
	// 打印格式化后的时间
	fmt.Printf("当前时间是: %s\n", currentTime.Format("2006-01-02 15:04:05"))
	count := 15
	var name string = "你好啊"
	const x = 1202.02116456
	fmt.Println(reflect.TypeOf(count)) //int
	fmt.Println(reflect.TypeOf(x))     // 输出: float64
	fmt.Printf("值：%d\n", Unknown)
	fmt.Printf("值为：%d", unsafe.Sizeof(x))
	fmt.Printf("字符串的长度是: %d\n", len(name))

	// for i := 0; i < count; i++ {
	// 	fmt.Printf("当前输出的值：%d\n", i)
	// }
}
